﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ChinaClipping.ClippingMaster.Model
{
    public class ClassInfo
    {
        private string _id;
        private string _name;
        private List<ClassInfo> _subclasses=new List<ClassInfo>();

        public ClassInfo(string id, string name)
        {
            this._id = id;
            this._name = name;
        }
        /// <summary>
        /// 获取客户ID
        /// </summary>
        public string Id
        {
            get { return _id; }
        }
        /// <summary>
        /// 获取客户名
        /// </summary>
        public string Name
        {
            get { return _name; }
        }
        /// <summary>
        /// 获取子类信息
        /// </summary>
        public List<ClassInfo> SubClasses
        {
            get { return this._subclasses; }
        }
        /// <summary>
        /// 添加子类
        /// </summary>
        /// <param name="classinfo"></param>
        public void AddSubClasses(ClassInfo classinfo)
        {
            this._subclasses.Add(classinfo);
        }

        public string FullPath { get; set; }
    }
}
